package com.dgut.sales.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dgut.sales.bean.Bills;
import com.dgut.sales.dao.BillsDao;

@Service
public class BillsService {
	@Autowired
	private BillsDao dao;
	
	public Bills getBillsById(Integer id) {
		return dao.getBillsById(id);
	}
	
	public List<Bills> getAllBills(){
		return dao.getAllBills();
	}
	
	public void addBills(Bills bills) {
		dao.addBills(bills);
	}
	
	public void updateStates(Integer id) {
		dao.updateStates(id);
	}

}
